// component/order-card.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    storeImage: String,
    storeName: String,
    status: Number,
    picPath: String, 
    title: String,
    price: Number,
    num: String,
    total: Number,
    currentOrder:Number,
    totlePrice:Number,
    singlePrice:Number,
    postFee: Number,
    showSep: Boolean,
    flag: String,
    orderNo: Number,
    performAddress:String,
    isCommented:Number,
    surplusMoney:Number,

  },
  /**
   * 组件的初始数据
   */
  data: {

  },
  /**
   * 组件的方法列表
   */
  methods: {
    store() {
      this.triggerEvent('store')
    },
    delete() {
      this.triggerEvent('delete')
    },
    pay() {
      console.log('pay-------');
      this.triggerEvent('pay')
    },
    detail() {
      this.triggerEvent('detail')
    },
    cancel() {
      console.log('cancel-------');
      this.triggerEvent('cancel')
    },
    comment() {
      this.triggerEvent('comment')
    },
    getRegistFeeFunc(){
        this.triggerEvent('getRegistFeeFunc')
    },
    confirm () {
      this.triggerEvent('confirm')
    },
    click_imgs(){
      this.triggerEvent('click_imgs')
    },
    // 查看物流信息
    Toexpress(){
      this.triggerEvent('Toexpress')
    }
  }
})
